package com.jymj.entity.data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * Created by ljj on 2018/3/26.
 */
public class KxFeiHzEntity implements Serializable {

    //村名
    private String xzqmc;
    private String code;
    // 宗数
    private Integer feicount;
    // 占地面积（公顷）
    private BigDecimal feimj;
    // 建筑面积（公顷）
    private BigDecimal feijzmj;

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getFeicount() {
        return feicount;
    }

    public void setFeicount(Integer feicount) {
        this.feicount = feicount;
    }

    public BigDecimal getFeimj() {
        return feimj == null ? new BigDecimal(0) : feimj.setScale(1, RoundingMode.HALF_UP);
    }

    public void setFeimj(BigDecimal feimj) {
        this.feimj = feimj;
    }

    public BigDecimal getFeijzmj() {
        return feijzmj == null ? new BigDecimal(0) : feijzmj.setScale(1, RoundingMode.HALF_UP);
    }

    public void setFeijzmj(BigDecimal feijzmj) {
        this.feijzmj = feijzmj;
    }
}
